package net.onecloud.onecloud.network.service;

import net.onecloud.onecloud.model.ResultResume;
import net.onecloud.onecloud.model.ResultUser;
import net.onecloud.onecloud.model.Resume;
import net.onecloud.onecloud.model.User;

import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Path;
import rx.Observable;

/**
 * Created by zaizai on 16/7/30.
 */
public interface ResumeService {
    @Headers({"Content-Type: application/json", "Accept: application/json"})//需要添加头
    @POST("/OneCloud/resume/add")
    Observable<ResultResume> add(@Body Resume resume);

    @GET("/OneCloud/resume/query1/{user_id}")
    Observable<ResultResume> query1(@Path(value = "user_id") String user_id);
}
